<?php 
	$apps = null;
	$pos = null;
	$part = null;
	$termModel = new Application_Model_Term();
	if($this->position){
		$pos = $this->position;
	}
	if($this->partner){
		$part = $this->partner;
	}
?>
<?php if($pos):?>
<h3>Request Status</h3>
<?php 
	if($pos['ACCEPTED']){
		$text = ($pos['ACCEPTED']=='y')?'Accepted':'Denied';
		echo $text . ". " . $pos['POSITIONSGRANTED'] . " positions granted.";
	}else{
		echo 'Unreviewed';
	}
?>
<h3>Administrative Options</h3>
	<?php 
		if($this->notsubmitted)
			echo 'No changes made; accept/deny not specified.';
	?>
	<?php echo $this->form ?>

<h3>Position details</h3>
	<dl>
	  <dt>Partner Name</dt>
	    <dd><?php echo $part?></dd>
  	  <dt>Position title</dt>
		<dd><?php echo $pos['NAME'] ?></dd>
	  <dt>Requested for term</dt>
		<dd><?php echo $pos['TERM'] ?></dd>
	  <dt>Positions</dt>
		<dd>Requested: <?php echo $pos['POSITIONSREQUESTED'] ?></dd>
		<dd>Granted: <?php echo $pos['POSITIONSGRANTED'] ?></dd>
	  <dt>Start and end dates</dt>
		<dd>Start:&nbsp;<?php echo $termModel->parseDateFromOracle($pos['STARTDATE']) ?></dd>
		<dd>End:&nbsp;<?php echo $termModel->parseDateFromOracle($pos['ENDDATE']) ?></dd>
<!--	  <dt>Description</dt>
		<dd><?php echo $pos['DESCRIPTION'] ?></dd>-->
	  <dt>Responsibilities</dt>
		<dd><?php echo $pos['RESPONSIBILITIES'] ?></dd>
	  <dt>Educational goals</dt>
		<dd><?php echo $pos['EDUCATIONALGOALS'] ?></dd>
	  <dt>Skills and qualifications</dt>
		<dd>
			<ul>
				<?php 
					$skills = explode(" | ",$pos['SKILLSQUALIFICATIONS']);
					foreach($skills as $s){
						if(trim($s) != ''){
						echo "<li>".trim($s)."<li>";
						}
					}
				?>
			</ul>
		</dd>
	  <dt>Required/Preferred majors or academic programs</dt>
		<dd><?php echo $pos['PROGRAMS'] ?></dd>
	  <dt>Importance of majors</dt>
		<dd><?php echo $pos['MAJORIMPORTANCE'] ?></dd>
	  <dt>Supervisor name</dt>
		<dd><?php echo $pos['SUPERVISOR'] ?></dd>
	  <dt>Is this person different from the agency contact?</dt>
		<dd>
			<?php 
				if($pos['SUPERISCONTACT']=='y'){
					echo "Yes";
				}else{
					echo "No";
				}
			?>
		</dd>
	  <dt>Mentor/Supervision Structure</dt>
		<dd><?php echo $pos['STRUCTURE'] ?></dd>
	  <dt>Support from APPLES</dt>
		<dd><?php echo $pos['SUPPORT'] ?></dd>
	  <dt>Number of staff that support your work</dt>
		<dd><?php echo $pos['STAFF'] ?></dd>
	  <dt>Do you have other student interns?</dt>
		<dd>
			<?php 
				if($pos['OTHERINTERNS']=='y'){
					echo "Yes";
				}else{
					echo "No";
				}
			?>
		</dd>
	  <dt>Describe in terms of hours worked, number of students, and work accomplished</dt>
		<dd><?php echo $pos['DESCRIPTION'] ?></dd>
	  <dt>Please tell us how an APPLES intern would benefit your organization</dt>
		<dd><?php echo $pos['BENEFITS'] ?></dd>	  
</dl>
<?php endif; ?>
<?php if(!$pos):?>
	<h3>The position requested does not exist.</h3>
<?php endif; ?>
